package tiepbm.app.store;

import tiepbm.app.util.lazyLoader.ImageLoader_nghiank;
import android.app.Application;

public class Global extends Application {

	private static Global instance;
	private static boolean isLogin=false;

	public static Global getInstance() {
		return instance;
	}

	public void clearCache() {
		try {

			ImageLoader_nghiank.getInstance().clearCache();
			ImageLoader_nghiank.getInstance().clearFileCache();
			ImageLoader_nghiank.getInstance().clearMemoryCache();
		} catch (Exception e) {
		}

	}

	@Override
	public void onLowMemory() {
		System.out.println("on low memory");
		clearCache();

		super.onLowMemory();
	}
}
